// good.html暂时没用
var ehicleStock;
(function(window) {

var c = {
	defaultLang: 'zh-cn',
	socketUrl:   'http://115.29.204.5:6767',
	bookUrl:     'http://115.29.204.5/pmw/#/book/',
	lightUrl:    'http://10.10.10.31/rfoutlet/toggle.php',
	auto:        300000,
	auto_more_than: 300000
};

c.ondebug = function(key) {
	var list = {
		'noPreload':    false,
		'noEffectHome': true,
		'noCamera':     false,
		'noSocket':     false
	};
	if(key == 'noSocket' || key == 'noCamera') {
		return list[key];
	}
	return !!(c.debug && list[key]);
};

c.cars={
	sport:     ['911','boxster','cayman'],
	family:    ['macan','cayenne','panamera'],
	luxury:    ['panamera','cayman','911'],
	lifestyle: ['travel','pds','golf']
};
ehicleStock = [
			{ name: 'Boxster', path: 'boxster_1', submodels: [
				{ name: 'Boxster', path: 'boxster_1',car_lang:'boxster'},
				{ name: 'Boxster Style Edition', path: 'boxster_2',car_lang:'boxster_edition' },
				{ name: 'Boxster S', path: 'boxster_3',car_lang:'boxster_S' },
				{ name: 'Boxster GTS', path: 'boxster_4',car_lang:'boxster_GTS' } 
				]
			},
			{ name: 'Cayman', path: 'cayman_1', submodels: [
				{ name: 'Cayman', path: 'cayman_1',car_lang:'cayman' },
				{ name: 'Cayman GTS', path: 'cayman_2',car_lang:'cayman_S' },
				{ name: 'Cayman S', path: 'cayman_3',car_lang:'cayman_GTS' } 
				]
			},
			{ name: '911', path: '911_1', submodels: [
				{ name: '911 Carrera', path: '911_1',car_lang:'911_carrera'},
				{ name: '911 Carrera Style Edition', path: '911_7',car_lang:'911_carrera_edition'},
				{ name: '911 Carrera S', path: '911_14',car_lang:'911_carrera_S'},
				{ name: '911 Carrera GTS', path: '911_12',car_lang:'911_carrera_GTS'},
				{ name: '911 Carrera Cabriolet', path: '911_10',car_lang:'911_carrera_Cabriolet' },
				{ name: '911 Carrera Cabriolet Style Edition', path: '911_11',car_lang:'911_carrera_Cabriolet_edition' },
				{ name: '911 Carrera S Cabriolet', path: '911_15',car_lang:'911_carrera_Cabriolet_S' },
				{ name: '911 Carrera GTS Cabriolet', path: '911_13',car_lang:'911_carrera_GTS_Cabriolet' },
				{ name: '911 Carrera 4', path: '911_2',car_lang:'911_carrera_4' },
				{ name: '911 Carrera 4 Style Edition', path: '911_16',car_lang:'911_carrera_4_edition' },
				{ name: '911 Carrera 4S', path: '911_8',car_lang:'911_carrera_4_S' },
				{ name: '911 Carrera 4 GTS', path: '911_5',car_lang:'911_carrera_4_GTS' },
				{ name: '911 Carrera 4 Cabriolet', path: '911_3',car_lang:'911_carrera_4_Cabriolet' },
				{ name: '911 Carrera 4 Cabriolet Style Edition', path: '911_4',car_lang:'911_carrera_4_Cabriolet_edition' },
				{ name: '911 Carrera 4S Cabriolet', path: '911_9',car_lang:'911_carrera_4S_Cabriolet' },
				{ name: '911 Carrera 4 GTS Cabriolet', path: '911_6',car_lang:'911_carrera_GTS_Cabriolet' },
				{ name: '911 Targa 4', path: '911_19',car_lang:'911_Targa_4' },
				{ name: '911 Targa 4S', path: '911_21',car_lang:'911_Targa_4S' },
				{ name: '911 Targa 4 GTS', path: '911_20',car_lang:'911_Targa_4_GTS' },
				{ name: '911 Turbo', path: '911_22',car_lang:'911_Turbo' },
				{ name: '911 Turbo S', path: '911_24',car_lang:'911_Turbo_S' },
				{ name: '911 Turbo Cabriolet', path: '911_23',car_lang:'911_Turbo_Cabriolet' },
				{ name: '911 Turbo S Cabriolet', path: '911_25',car_lang:'911_Turbo_S_Cabriolet' },
				{ name: '911 GT3', path: '911_17',car_lang:'911_GT3' },
				{ name: '911 GT3 RS', path: '911_18',car_lang:'911_GT3_RS' },
				]
			},
			{ name: 'Panamera', path: 'panamera_1', submodels: [
				{ name: 'Panamera', path: 'panamera_1',car_lang:'panamera'},
				{ name: 'Panamera S E-Hybrid', path: 'panamera_2',car_lang:'panamera_S_E_Hybrid'  },
				{ name: 'Panamera 4 Executive', path: 'panamera_3',car_lang:'panamera_4_executive'  },
				{ name: 'Panamera S Executive', path: 'panamera_4',car_lang:'panamera_Turbo_Executive'  },
				{ name: 'Panamera 4S Sport Edition', path: 'panamera_5',car_lang:'panamera_4S_Executive'  },
				{ name: 'Panamera Turbo S', path: 'panamera_6',car_lang:'panamera_Turbo_Executive'  },
				{ name: 'Panamera Executive', path: 'panamera_7',car_lang:'panamera_executive'  },
				{ name: 'Panamera 4', path: 'panamera_8',car_lang:'panamera_4'  }
				]
			},
			{ name: 'Macan', path: 'macan_1', submodels: [
				{ name: 'Macan', path: 'macan_1',car_lang:'Macan' },
				{ name: 'Macan S', path: 'macan_2',car_lang:'Macan_S' },
				{ name: 'Macan Turbo', path: 'macan_3',car_lang:'Macan_Turbo' },
				] 
			},
			{ name: 'Cayenne', path: 'cayenne_1', submodels: [
				{ name: 'Cayenne', path: 'cayenne_1',car_lang:'Cayenne' },
				{ name: 'Cayenne S', path: 'cayenne_4',car_lang:'Cayenne_S' },
				{ name: 'Cayenne S E-Hybrid', path: 'cayenne_3',car_lang:'Cayenne_S_E_Hybrid' },
				{ name: 'Cayenne GTS', path: 'cayenne_2',car_lang:'Cayenne_GTS' },
				{ name: 'Cayenne Turbo', path: 'cayenne_6',car_lang:'Cayenne_Turbo' },
				{ name: 'Cayenne Turbo S', path: 'cayenne_5',car_lang:'Cayenne_Turbo_S' },
				] 
			},
	];


window.config = c;

})(window);